package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.domain.Content;
import com.ruoyi.system.api.domain.SysFile;
import com.ruoyi.system.api.factory.RemoteFileFallbackFactory;
import com.ruoyi.system.api.factory.RemoteManagerFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 文件服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteManagerService", value = ServiceNameConstants.MANAGER_SERVICE, fallbackFactory = RemoteManagerFallbackFactory.class)
public interface RemoteManagerService {

    @GetMapping("/content/getContentsByCateId/{id}")
    public R<List<Content>> getContentsByCateId(@PathVariable("id")Long id);

    @GetMapping("/content/getContentById/{id}")
    R<Content> getContentById(@PathVariable("id") Long id);
}
